package ns3.animator.app.globle;

import java.util.ArrayList;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.ListModel;

import ns3.animator.app.view.comp.ArrayListComboBoxModel;
import ns3.animator.app.view.comp.ListBaseComponent;

public class StaticDataContainer {

	public static ArrayListComboBoxModel getDataModel(String listTitle) {
		
		ArrayListComboBoxModel dataModel= null;
		
		ArrayList<String> datas = new ArrayList<String>(); 
		
		if(NsGVar.DATARATE.equals(listTitle)){
			datas.add("5Mps"); // = new Arra[]{"5Mps"};
		}else if(NsGVar.SERVERSTOPTIME.equals(listTitle)){
			datas.add("0.0s");
		}else if(NsGVar.SELECTDELAY.equals(listTitle)){
			datas.add("2ms");
		}else if(NsGVar.CLIENTSTARTTIME.equals(listTitle)){
			datas.add("0.0s");
		}else if(NsGVar.SELECTBASEIP.equals(listTitle)){
			datas.add("10.1.1.0");	
		}else if(NsGVar.SELECTCLIENTSTOP.equals(listTitle)){
			datas.add("0.0s");	
		}else if(NsGVar.SELECTNETWORKMASK.equals(listTitle)){
			datas.add("255.255.255.0");	
		}else if(NsGVar.SELECTMAXPAKETS.equals(listTitle)){
			datas.add("1");	
		}else if(NsGVar.SELECTINTERVAL.equals(listTitle)){
			datas.add("1s");	
		}else if(NsGVar.SELECTPACKETSIZE.equals(listTitle)){
			datas.add("1k");	
		}else if(NsGVar.SELECTSERVERSTARTTIME.equals(listTitle)){
			datas.add("0.0s");	
		}else{
			
			return null;
		}
		
		dataModel= new ArrayListComboBoxModel(datas);
		
		
		
		
		return dataModel;
	}


	
}
